package edu.nf.exam.entity;

import lombok.Data;

import java.util.Date;

/**
 * 消息信息表
 */
@Data
public class MessageInfo {
    /**
     * 消息编号
     */
    private Integer messageId;
    /**
     * 标题
     */
    private String title;
    /**
     * 内容
     */
    private String content;
    /**
     * 发送者编号
     */
    private Integer sendUserId;
    /**
     * 发送者用户名
     */
    private String sendUserName;
    /**
     * 发送者真实姓名
     */
    private String sendRealName;
    /**
     * 接收者编号
     */
    private Integer receiveUserId;
    /**
     * 接收者用户名
     */
    private String receiveUserName;
    /**
     * 接收者真实姓名
     */
    private String receiveRealName;
    /**
     * 状态（1：未读 2：已读）
     */
    private Integer status;
    /**
     * 创建时间
     */
    private Date createTime;



    /**
     * 重写toString方法
     * @return
     */
    @Override
    public String toString() {
        return "MessageInfo{" +
                "messageId=" + messageId +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", sendUserId=" + sendUserId +
                ", sendUserName='" + sendUserName + '\'' +
                ", sendRealName='" + sendRealName + '\'' +
                ", receiveUserId=" + receiveUserId +
                ", receiveUserName='" + receiveUserName + '\'' +
                ", receiveRealName='" + receiveRealName + '\'' +
                ", status=" + status +
                ", createTime=" + createTime +
                '}';
    }
}
